package com.isljj.web_chat2.model;

import com.isljj.web_chat2.utils.DateUtils;
import lombok.Data;
import lombok.Getter;

import java.util.Date;

@Data
public class Message {
    int messageId;
    int fromId;
    String fromName;
    int sessionId;
    String content;


    Date postTime;
    public String getPostTime() {
        return DateUtils.formatDate(postTime);
    }

}
